package pub.tbc.mybatis.servlet;

import lombok.extern.slf4j.Slf4j;

import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.Map;

/**
 * @author tbc on 2017/5/23 16:31:54.
 */
@Slf4j
@WebServlet("/s")
public class MyServlet extends HttpServlet {

    public void service(HttpServletRequest request, HttpServletResponse response) {
        Map<String, String[]> params = request.getParameterMap();
        params.forEach((k, v) -> System.out.println("key=" + k + "; value=" + v));
    }
}
